attributes.width = child_allocation.width;
attributes.height = child_allocation.height;
}
- bin->offscreen_window = gdk_window_new (gtk_widget_get_root_window (widget),
+ bin->offscreen_window = gdk_window_new (gdk_screen_get_root_window (gtk_widget_get_screen (widget)),
&attributes, attributes_mask);
gdk_window_set_user_data (bin->offscreen_window, widget);
if (bin->child)
attributes.width = child_allocation.width;
attributes.height = child_allocation.height;
}
- bin->offscreen_window = gdk_window_new (gtk_widget_get_root_window (widget),
+ bin->offscreen_window = gdk_window_new (gdk_screen_get_root_window (gtk_widget_get_screen (widget)),
&attributes, attributes_mask);
gdk_window_set_user_data (bin->offscreen_window, widget);
if (bin->child)
attributes.height = child_area.height;
start_y += child_area.height;
}
- offscreen_box->offscreen_window1 = gdk_window_new (gtk_widget_get_root_window (widget),
+ offscreen_box->offscreen_window1 = gdk_window_new (gdk_screen_get_root_window (gtk_widget_get_screen (widget)),
&attributes, attributes_mask);
gdk_window_set_user_data (offscreen_box->offscreen_window1, widget);
if (offscreen_box->child1)
attributes.width = child_area.width;
attributes.height = child_area.height;
}
- offscreen_box->offscreen_window2 = gdk_window_new (gtk_widget_get_root_window (widget),
+ offscreen_box->offscreen_window2 = gdk_window_new (gdk_screen_get_root_window (gtk_widget_get_screen (widget)),
&attributes, attributes_mask);
gdk_window_set_user_data (offscreen_box->offscreen_window2, widget);
if (offscreen_box->child2)